<?php
class News {
	var $news_id;
	var $news_ts;
	var $news;
	var $news_url;
	var $news_type;
	
	public static function getNewsList($result) {
		$news_list = array();
		while ($row = mysql_fetch_array($result)) {
			$news = new News();
			$news->news_id = $row["news_id"];
			$news->news_ts = $row["dttime"];
			$news->news = $row["news"];
			$news->news_url = $row["news_url"];
			$news->news_type = $row["news_type"];
			
			$news_list[] = $news;
		}
		return $news_list;
	}
}
?>
